# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-tomso
_pkgorig=tomso
pkgver=0.2.0
pkgrel=0
pkgdesc="Tools for Models of Stars and their Oscillations"
url="https://github.com/warrickball/tomso"
arch="noarch"
license="MIT"
depends="python3 py3-numpy"
checkdepends="python3-dev py3-pytest"
makedepends="py3-setuptools"
source="https://github.com/warrickball/tomso/archive/v$pkgver/$_pkgorig-$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"
options="!check" #tests retrieve some online data

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
06ca8317812179351cc3f8cc732887bc45adbe129a6096bda256c4812159804c843e70ad62482f31c0da157ac383833047ad7213cb270382589ff3618d09a869  tomso-0.2.0.tar.gz
"
